package com.mccrea.pattern.visitor;

import java.util.Random;

/**
 * @Classname Engineer
 * @Description 工程师
 * @Date 2021/5/20 0020 14:13
 * @Created by Mccrea_Gao
 */
public class Engineer extends Staff {
    public Engineer(String name) {
        super(name);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    // 工程师代码量
    public int getCodeLines() {
        return new Random().nextInt(10 * 100000);
    }
}
